import React from 'react';
import s from './index.scss';
export default ({onSwitchTab}) => <div className={`${s.ListTabBox} `}
>
  <div className={`flex-wrp`}>
    <div className={`flex-item ${s.tabItem} ${location.hash == '#/projectList?flag=1' ||location.hash == '#/projectList'? `${s.active}` : 'color3'}`}
         onClick={() => onSwitchTab('/projectList?flag=1')}>直投项目
    </div>
    <div className={`flex-item ${s.tabItem} ${s.borderLeft}  ${location.hash == '#/projectList?flag=2'  ? `${s.active}` : 'color3'}`}
         onClick={() => onSwitchTab('/projectList?flag=2')}>债券转让
    </div>
  </div>
</div>